package cn.iot.sys.service.impl;

import cn.iot.sys.dao.StudentDao;
import cn.iot.sys.entity.Student;
import cn.iot.sys.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;
    @Override
    public List<Student> getStudents ( int id, int pageSize, int pageNum ) {
        return studentDao.getList(id, pageSize,pageNum);
    }
}
